home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3378 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1012 b 

  1. Path: news.ios.com!usenet
  2. From: John Leonard <leonardj@tribeca.ios.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Using templates in BC++ 4.5
  5. Date: Tue, 23 Jan 1996 11:26:21 -0500
  6. Organization: 12th of Nov, Inc
  7. Message-ID: <31050C2D.674C@tribeca.ios.com>
  8. NNTP-Posting-Host: ppp-36.ts-9.hck.idt.net
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b4 (Win95; I)
  13.  
  14. I wrote a windows program, in BC++ 4.52, that uses class templates. 
  15. The template declarations are in a header file and the function 
  16. definitions are in a cpp file which includes the header file. The cpp 
  17. file compiled fine, but the project window showed that the code size 
  18. equaled zero and when I tried to build and link the entire project I got 
  19. linker error messages that the member functions of the class were 
  20. undefined. I then changed the code so that the classes weren't templates 
  21. and the project was built and ran fine. My question is: how can I use 
  22. class templates in my program?
  23.